use Universal qmt style on windows release before windows 11 then use
FluentWinUI3 which should fit with default windows 11 native style
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
#if defined Q_OS_MAC
style = QStringLiteral("macOS");
-#elif defined Q_OS_WIN
- style = QStringLiteral("FluentWinUI3");
#endif
QQuickStyle::setStyle(style);
#if defined Q_OS_WIN
if (QOperatingSystemVersion::current().version() < QOperatingSystemVersion::Windows11.version()) {
- QApplication::setStyle(QStyleFactory::create("Fusion"));
+ QApplication::setStyle(QStyleFactory::create("Universal"));
+ } else {
+ style = QStringLiteral("FluentWinUI3");
}
#endif